import request from '@/utils/requestDemo'
/*
 * @Author: LiuYuCheng
 */
export default class StockPileApi {
  /**
   * initComboData
   */
  static initComboData(data) {
    return request({
      url: '/stockPile/initComboData',
      method: 'post',
      data: data
    })
  }
  /**
   * 查询表格
   */
  static table(data) {
    return request({
      url: '/stockPile/table',
      method: 'post',
      data: data
    })
  }
  /**
   * 查询表格
   */
  static demoTable(data) {
    return request({
      url: '/stockPile/demoTable',
      method: 'post',
      data: data
    })
  }
  /**
   * 增改
   */
  static saveOrUpdate(data) {
    return request({
      url: '/stockPile/saveOrUpdate',
      method: 'post',
      data: data
    })
  }
  /**
   * 删除
   */
  static delete(data) {
    return request({
      url: '/stockPile/delete',
      method: 'post',
      data: data
    })
  }
  /**
   * 下载附件
   */
  static downloadFile(data) {
    return request({
      url: '/stockPile/downloadFile',
      method: 'post',
      data: data
    })
  }
  /**
   * 查询柱状图数据
   */
  static getDataBar(data) {
    return request({
      url: '/echarts/getDataBar',
      method: 'post',
      data: data
    })
  }
  /**
   *
   */
  static readDs(data) {
    return request({
      url: '/echarts/readDs',
      method: 'post',
      data: data
    })
  }
  /**
   * 查询柱状图数据
   */
  static plusOne(data) {
    return request({
      url: '/echarts/plusOne',
      method: 'post',
      data: data
    })
  }
}
